package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.StrategyDetail;
import cn.wolfcode.luowowo.article.domain.Travel;
import cn.wolfcode.luowowo.common.query.QueryObject;
import cn.wolfcode.luowowo.common.query.TravelQueryObject;
import cn.wolfcode.luowowo.member.domain.UserInfo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface TravelMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Travel record);

    Travel selectByPrimaryKey(Long id);

    List<Travel> selectAll();

    List<Travel> selectForList(QueryObject qo);

    int updateByPrimaryKey(Travel record);

    List<StrategyDetail> listViewnumTop3(Long destId);

    List<Travel> queryForUid(TravelQueryObject qo);

    Integer getTraveltotalByUid(Long uid);

    Integer getReplynumtotalByUid(Long uid);

    Integer getViewnumtotalByUid(Long uid);

    List<Travel> getTravelsById(Long uid);

    void updateTravelStats(Travel travel);
}